#include <bits/stdc++.h>
using namespace std;
const int maxn = 8+2;
int N; double room;
double stone[maxn];
int main() {
    ios_base::sync_with_stdio(false);cin.tie(nullptr);
    int T; cin >> T;
    while(T--){
        cin >> room >> N;
        for (int i = 0; i < N; ++i) {
            cin >> stone[i];
        }
        
        
        
        
        if(T) cout << "\n";
    }
    return 0;
}